<input type="hidden" name="scheduler.id" value="#(scheduler.id??)">

<div class="am-tab-panel am-fade am-in am-active">
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">公司名称</div>
    <div class="am-u-sm-8 am-u-md-10">
      <input type="text" name="scheduler.company" style="width:250px;" value="#(scheduler.company??)">
    </div>
  </div>
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">车牌号码</div>
    <div class="am-u-sm-8 am-u-md-10">
      <input type="text" name="scheduler.van" style="width:250px;" value="#(scheduler.van??)">
    </div>
  </div>
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">入库位置</div>
    <div class="am-u-sm-8 am-u-md-10">
      <!--TODO 修改Scheduler时保持选中状态 -->
      <select data-am-selected="{btnWidth: 250}" name="scheduler.position">
        <option value="部品-1">部品-1</option>
        <option value="部品-2">部品-2</option>
      </select>
      <!--
      <input type="text" name="scheduler.position" style="width:250px;" value="#(scheduler.position??)">
      -->
    </div>
  </div>
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">计划入库时间</div>
    <div class="am-u-sm-8 am-u-md-10">
      <!-- TODO 使用for循环处理，修改Scheduler时保持选中状态 -->
      <select data-am-selected="{btnWidth: 100}" name="hour">
        <option value="8">08</option>
        <option value="9" selected>09</option>
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="13">13</option>
        <option value="14">14</option>
        <option value="14">15</option>
        <option value="14">16</option>
        <option value="14">17</option>
        <option value="14">18</option>
      </select>
      :
      <select data-am-selected="{btnWidth: 100}" name="minute">
        <option value="0">00</option>
        <option value="10">10</option>
        <option value="20">20</option>
        <option value="30">30</option>
        <option value="40">40</option>
        <option value="50">50</option>
      </select>
    </div>
  </div>
  #if(scheduler)
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">当前状态</div>
    <div class="am-u-sm-8 am-u-md-10">
      <input type="text" style="width:250px;" value="#(status.getStr(scheduler.status??0))" disabled>
      <!--
      <input type="hidden" name="scheduler.status" value="#(scheduler.status)">
      -->
    </div>
  </div>
  #else
  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">计划类型</div>
    <div class="am-u-sm-8 am-u-md-10">
      <label class="am-checkbox">
        <input type="checkbox" name="extra" value="true" checked="checked"  data-am-ucheck>计划外任务
      </label>
    </div>
  </div>
  #end

  <div class="am-g am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">
    </div>
    <div class="am-u-sm-8 am-u-md-10">
      <div class="am-margin">
        <button type="submit" class="am-btn am-btn-primary am-btn-xs">&nbsp;提交保存&nbsp;</button>
      </div>
    </div>
  </div>
</div>